import request from '@/utils/request'
import { getToken } from '@/utils/auth'
export default {
  //订单列表
  getOrderlist(page_num, page_size) {
    return request({
      url: `/order/list?page_num=${page_num}&page_size=${page_size}`,
      method: 'GET',
      headers: {
        'Authorization': getToken()
      }
    })
  },
  //查找订单
  searchOrder(order_id){
    return request({
      method:'GET',
      url:`order?order_id=${order_id}`,
      headers: {
              'Authorization':getToken()
            }
    })
  }
}

